package cn.interestingshop.mapper.user;

import cn.interestingshop.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    public int save(User user);//新增用户信息
    public int update(User user);//更新用户信息
    public int deleteById(Integer id);//删除用户信息
    public User selectById(@Param("id") Integer id,@Param("account") String account);//登录

    public List<User> selectList(@Param("currentPageNo")Integer currentPageNo,@Param("pageSize") Integer pageSize);
    public Integer selectCount();
}
